package com.example.demo.repository;

import com.example.demo.dataobject.OralMedicine;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface OralMedicineRepository extends JpaRepository<OralMedicine,Integer> {
    List<OralMedicine> findAll();
    List<OralMedicine> findByNameLikeOrderById(String name);
    OralMedicine findByName(String name);
}
